import request from '@/utils/request'

// 查询设备信息列表
export function listEquipment2(query) {
  return request({
    url: '/system/equipment2/list',
    method: 'get',
    params: query
  })
}

// 查询设备信息详细
export function getEquipment2(id) {
  return request({
    url: '/system/equipment2/' + id,
    method: 'get'
  })
}

// 新增设备信息
export function addEquipment2(data) {
  return request({
    url: '/system/equipment2',
    method: 'post',
    data: data
  })
}

// 修改设备信息
export function updateEquipment2(data) {
  return request({
    url: '/system/equipment2',
    method: 'put',
    data: data
  })
}

// 删除设备信息
export function delEquipment2(id) {
  return request({
    url: '/system/equipment2/' + id,
    method: 'delete'
  })
}
